// 得到token
export function getToken() {
  return localStorage.getItem('token')
}
// 设置token
export function setToken(data) {
  localStorage.setItem('token', data)
}
// 清除 token
export function clearToken() {
  localStorage.removeItem('token')
}

export function getName() {
  sessionStorage.removeItem('username')
}

export function setName(data) {
  sessionStorage.setItem('username', data)
}

export function clearName(data) {
  sessionStorage.removeItem('username')
}
